/**********************************************************      
  
 * 类名称：PolestarNamespaceHandlerSupport   
 * 类描述：   
 * 创建人：夏鸿鹏 
 * 创建时间：2017年11月27日 下午1:15:02   
 * 修改备注：   
 *   
 **********************************************************/
package com.wuuxiang.polestar.core.spring;

import org.springframework.beans.factory.xml.NamespaceHandlerSupport;

import com.wuuxiang.polestar.core.spring.surpass.PolestarPropertySourcesPlaceholderSurPassConfigurerConfigBean;
import com.wuuxiang.polestar.core.spring.surpass.ZookeeperSurPassConfigGroupConfigBean;
import com.wuuxiang.polestar.core.spring.surpass.ZookeeperSurPassConfigProfileConfigBean;

public class PolestarNamespaceHandlerSupport extends NamespaceHandlerSupport {

	@Override
	public void init() {
		registerBeanDefinitionParser("profile", new ZookeeperConfigProfileConfigBean());
		registerBeanDefinitionParser("group", new ZookeeperConfigGroupConfigBean());
		registerBeanDefinitionParser("placeholder", new PolestarPropertySourcesPlaceholderConfigurerConfigBean());
		// 新版
		registerBeanDefinitionParser("polestarprofile", new ZookeeperSurPassConfigProfileConfigBean());
		registerBeanDefinitionParser("polestargroup", new ZookeeperSurPassConfigGroupConfigBean());
		registerBeanDefinitionParser("polestarplaceholder", new PolestarPropertySourcesPlaceholderSurPassConfigurerConfigBean());
	}

}

  